-
Notifications
You must be signed in to change notification settings - Fork 339
Handle errors in parallel teardown files #2210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
I also changed the exit status of the subprocesses to 0 (normal exit), from 1. I didn't find any reason why it was 1, hopefully there wasn't any. It is a normal exit, so 0 makes more senset to me (now). Closes #1165.
Claude finished @gaborcsardi's task —— View job Code Review
Key Issues:
The teardown error collection improvement should handle the test failure case better. The failing test might need investigation of whether the teardown error is occurring before your error collection logic can capture it. Recommendation: Run the specific failing test in isolation to see if the error collection is working as expected, or if there's a race condition in the teardown process. |
Seems like this is not OK:
|
Another kind of failure:
|
It is an error to call it on busy ones. This might happen on an interrupt.
In case the process has terminated already.
Because it creates a race condition and the output of the teardown function might be lost. This means that covr probably does not work for these workers, because there is no time for it to write out the coverage counters.
Close the input connection first, and then give the workers some time to quit. This helps covr to write out the coverage counters.
This should be good now. |
I also changed the exit status of the subprocesses to 0 (normal exit),
from 1. I didn't find any reason why it was 1, hopefully there
wasn't any. It is a normal exit, so 0 makes more senset to me (now).
Closes #1165.